<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            background: red;
        }
        iframe{
            width: 80vw;
            height: 80vw;
            background: gold;
        }
        div{
            width: 50vw;
            height: 50vw;
            background: lime;
        }
    </style>
</head>
<body>
    <!-- 注意：父页面的资源子页面不可以共享 -->
    <ul>
        <!-- target属性链接锚点（目标点）实现该目标点跳转页面的方式 只有ifram标签可以实现页中页的方式-->
        <a target="yezhongye" href="../index.html">首页</a>
        <a target="yezhongye" href="../login.html">登录</a>
    </ul>
    <!-- iframe -->
<iframe name="yezhongye" src="../login.html" frameborder="0"></iframe>
<!-- <div name="yezhongye"></div> -->
</body>
</html>